page.tsx 666 B

1234567891011121314151617181920212223
  1. import React from 'react'
  2. import { getLocaleOnServer } from '@/i18n/server'
  3. import { useTranslation } from '@/i18n/i18next-serverside-config'
  4. import Form from '@/app/components/datasets/settings/form'
  5. const Settings = async () => {
  6. const locale = getLocaleOnServer()
  7. const { t } = await useTranslation(locale, 'dataset-settings')
  8. return (
  9. <div className='bg-white h-full'>
  10. <div className='px-6 py-3'>
  11. <div className='mb-1 text-lg font-semibold text-gray-900'>{t('title')}</div>
  12. <div className='text-sm text-gray-500'>{t('desc')}</div>
  13. </div>
  14. <div>
  15. <Form />
  16. </div>
  17. </div>
  18. )
  19. }
  20. export default Settings